# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-desktop
pkgver=1.26.0
pkgrel=1
pkgdesc="The MATE Desktop Environment"
url="https://mate-desktop.org/"
# s390x and riscv64 blocked by librsvg
arch="all !s390x !riscv64"
license="GPL-2.0-or-later AND LGPL-2.0-or-later"
depends="mate-common yelp-tools"
makedepends="startup-notification itstool intltool dconf-dev gtk+3.0-dev
	libxrandr-dev libxml2-utils iso-codes-dev librsvg"
subpackages="$pkgname-lang $pkgname-dev $pkgname-doc"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-desktop-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--enable-static=no \
		--sysconfdir=/etc \
		--prefix=/usr
	# https://bugzilla.gnome.org/show_bug.cgi?id=656231
	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
73189cf2d5106fa632ed9272d7ba069ed4ff4b3032d279dce9953e322b487463fca5ffc42af00eed4344cfdecbc9a2f95f1f2ae96386d26c0ad0cfcd0ed226cc  mate-desktop-1.26.0.tar.xz
"
